package d0327;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class Test2 {
    public static void main(String[] args) {
        Random random=new Random();
        Set<Integer> set=new HashSet<>();
        while(set.size()<=10) {
           set.add(random.nextInt(10));
        }
        for (Integer a:
                set) {
            System.out.println(a);
        }
    }
}
